<?php

class Cat_Tags_Snippet_Print extends Cat_Processor_Monkey_TagBase
{
	function getOutput()
	{		
		$args = $this->getArgs();
		$name = trim( $args[0] );		
		$snippet = $this->getProcessor()->getParam('cat.tags.snippet.' . $name);

		$trt = array();

		foreach( $args as $key => $val )
		{
			$trt["{{ $key }}"] = (string)$val;
		}
		
		return strtr( $snippet, $trt );
	}
}

?>